package testcase;

import java.io.IOException;

import org.testng.annotations.BeforeTest;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;

import base.BaseDriver;
import pages.HomePage;
import pages.LoginPage;

public class LoginAndHome extends BaseDriver{
	HomePage homePage = new HomePage(driver);
	LoginPage loginPage = new LoginPage(driver);
	
	@Test(dataProvider="user")
	public void login(String name,String password) throws InterruptedException {
		loginPage.login("http://10.7.90.33:11443", name, password);
		Thread.sleep(2000);
	}
	
	@Test
	public void test_send_1() throws InterruptedException {
		homePage.test_send_lyn("hello lyn");
		Thread.sleep(1000);
		
	}
	@Test
	public void test_send_2() throws InterruptedException {
		homePage.test_send_system("hello system");
		Thread.sleep(1000);
	}
	
	@Test
	public void test_search() throws InterruptedException {
		homePage.test_search("lyn");
		Thread.sleep(1000);
	}
	

}
